<?php /* Smarty version 2.6.13, created on 2009-01-08 11:15:55
         compiled from main.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_tpl_vars['currentPage']->getTitle(); ?>
</title>
<META http-equiv="Content-type" content="text/html; charset=<?php echo $this->_tpl_vars['fvConfig']->get('charset'); ?>
" />
<meta name="keywords" content="<?php echo $this->_tpl_vars['currentPage']->getKeyWords(); ?>
" />
<meta name="description" content="<?php echo $this->_tpl_vars['currentPage']->getDescription(); ?>
" />

<?php $_from = $this->_tpl_vars['fvConfig']->get('includes.css'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['Css']):
?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['Css']; ?>
" />
<?php endforeach; endif; unset($_from); ?>

    
<?php $_from = $this->_tpl_vars['fvConfig']->get('includes.js'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['Js']):
?>
<SCRIPT type="text/javascript" src="<?php echo $this->_tpl_vars['Js']; ?>
"></SCRIPT>
<?php endforeach; endif; unset($_from); ?>

</head>

<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="270px">
	<tr>
		<td width="25%" style=" background-image:url(/img/new/gr_1.jpg); background-repeat:repeat-x; padding-left:" valign="top" align="center">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr valign="top" height="144">
					<td align="center"><img src="/img/logo_4.jpg" width="102" height="144"></td>
				</tr>
				<tr valign="bottom" height="30px">
					<td valign="bottom" align="center"><a href="/" class="links3">Сертификация агенств</a></td>
				</tr>
			</table>
		</td>
		<td width="17%" style=" background-image:url(/img/new/gr_2.jpg); background-repeat:repeat-x;"><img src="/img/new/u_1.jpg" width="99" height="270" align="rleft"></td>
		<td width="280px" valign="top"><img src="/img/logo_0.jpg" width="280" height="266"></td>
		<td width="10%" style=" background-image:url(/img/new/gr_2.jpg); background-repeat:repeat-x;"><img src="/img/new/u_2.jpg" width="44" height="270" align="right"></td>
		<td  width="20%" style=" background-image:url(/img/new/gr_3.jpg); background-repeat:repeat-x;">
			<table border="0" cellpadding="0" cellspacing="0" width="172" height="270px" style=" background-image:url(/img/new/u_3.jpg); background-repeat:no-repeat; background-position:left;">
				<tr height="40px">
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:48px;" >Об АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:41px;">Состав АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:34px;">Вступление в АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:27px;">Проекты</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:20px;">Документы и статьи</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:13px;">Пресс-центр</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:4px;">Контакты</a></td>
				</tr>
				<tr height="40px">
					<td>&nbsp;</td>
				</tr>
			</table>
		
		</td>
		<td width="30%" style=" background-image:url(/img/new/gr_4.jpg); background-repeat:repeat-x;" align="left">
		<?php $this->assign('LoggedManager', $this->_tpl_vars['currentPage']->getLoggedUser()); ?> 
			<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
				<tr height="34px">
					<td>&nbsp;</td>
				</tr>
				<tr height="45px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="71"><img src="/img/new/22.jpg" width="71" height="45"></td>
								<td style=" background-image:url(/img/new/33.jpg); background-repeat:repeat-x;">
								<?php if ($this->_tpl_vars['LoggedManager']): ?><a class="links4">Добро пожаловать</a>&nbsp;<a class="links5"><?php echo $this->_tpl_vars['LoggedManager']->get('login'); ?>
</a>
								<?php else: ?><a class="links4">Сертификация турагенств</a>
								<?php endif; ?>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="92px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="46px"><img src="/img/new/44.jpg" width="46" height="92"></td>
								<td style=" background-image:url(/img/new/55.jpg); background-repeat:repeat-x;">
									<table border="0" cellpadding="0" cellspacing="0">
										<?php if ($this->_tpl_vars['LoggedManager']->is_agency): ?>	
										<tr>
											<td style="padding-left:24px;"><a href="/own/" class="regystr">Страница агенства</a></td>
										</tr>
										<tr>
											<td style="padding-left:17px;"><a href="/own/staff/" class="regystr">Список сотрудников</a></td>
										</tr>
										<?php elseif ($this->_tpl_vars['LoggedManager']->agency_id): ?>
										<tr>
											<td style="padding-left:24px;"><a href="/own/" class="regystr">Страница сотрудника</a></td>
										</tr>
										<tr>
											<td style="padding-left:17px;"><a href="/own/edit/" class="regystr">Редактировать информацию</a></td>
										</tr>
										<?php else: ?>
										<tr>
											<td style="padding-left:24px;"><a href="/agency/register/" class="regystr">Регистрация агенства</a></td>
										</tr>
										<?php endif; ?>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="35px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="56px"><img src="/img/new/66.jpg" width="56" height="35"></td>
								<td width="60px" style=" background-image:url(/img/new/77.jpg); background-repeat:repeat-x;">
								<?php if ($this->_tpl_vars['LoggedManager']): ?><a href="/login/logout/" class="vhod">Выход</a>
								<?php else: ?><a href="/login/" class="vhod">Вход</a>
								<?php endif; ?>
								</td>
								<td width="25px"><img src="/img/new/88.jpg" width="25" height="35"></td>
								<td style=" background-image:url(/img/new/99.jpg); background-repeat:repeat-x;"><a href="/agency/register/" class="regystr">Регистрация</a></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="64px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="16px"><img src="/img/new/10.jpg" width="16" height="64"></td>
								<td style=" background-image:url(/img/new/12.jpg); background-repeat:repeat-x;">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>


<table cellpadding="2" cellspacing="1" align="center" width="100%" border="0" height="100%" style="border-style:solid;border-width: thin;">
	<tr>
		<td valign="top">
			<table cellpadding="5" cellspacing="1" align="center" width="100%" style="border: 4px double black;">
				<tr>
					<td><a class="links2" href="/agency/">Список агенств</a> </td>
				</tr>
				
				<?php if ($this->_tpl_vars['LoggedManager']->is_agency): ?>
				<tr>
					<td><a class="links2" href="/own/">Страница агенства</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/own/staff">Список сотрудников</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/logout/">Выйти</a><div id="hello" class="text">Добро пожаловать <B><?php echo $this->_tpl_vars['LoggedManager']->get('full_name'); ?>
</B></div></td>
				</tr>
			<?php elseif ($this->_tpl_vars['LoggedManager']->agency_id): ?>
				<tr>
					<td><a class="links2" href="/own/">Страница сотрудника</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/own/edit">Редактировать информацию</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/logout/">Выйти</a><div id="hello" class="text">Добро пожаловать <B><?php echo $this->_tpl_vars['LoggedManager']->get('full_name'); ?>
</B></div></td>
				</tr>
			<?php else: ?>
				<tr>
					<td><a class="links2" href="/agency/register/">Регистрация агенства</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/">Войти в систему</a></td>
				</tr>
			<?php endif; ?>
			</table>
		</td>
		<td valign="top" width="80%">
		
		<?php echo $this->_tpl_vars['currentPage']->getPageContent(); ?>

		
		</td>
	</tr>
</table>
</body>
</html>